/**
 *  test5.c - Test osInitTask() and osChgPrio().
 *            It runs on ARMulator or ARM7TDMI CPU.
 *
 *  Copyright (C) 2008-2009  ZhangHu
 *  All rights reserved.
 *  E-MAIL: anmnmnly@gmail.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
#include "include\core.h"


#define STACK_SIZE 4096
#define SAME_PRIO 61


static void Task0(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(63);
    }
}



static void Task1(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(82);
    }
}



static void Task2(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(98);
    }
}



static void Task3(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(68);
    }
}



static void Task4(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(230);
    }
}



static void Task5(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(148);
    }
}



static void Task6(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task7(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(65);
    }
}



static void Task8(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task9(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(163);
    }
}




static void Task10(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task11(void) {
    uword_t rand;

    while(1) {

        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(64);
    }
}



static void Task12(void) {
    uword_t rand;

    while(1) {

        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(152);
    }
}



static void Task13(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(45);
    }
}



static void Task14(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task15(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(58);
    }
}



static void Task16(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(231);
    }
}



static void Task17(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(45);
    }
}



static void Task18(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(236);
    }
}



static void Task19(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(119);
    }
}



static void Task20(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(201);
    }
}



static void Task21(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(121);
    }
}



static void Task22(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(125);
    }
}



static void Task23(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task24(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(25);
    }
}



static void Task25(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(231);
    }
}



static void Task26(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(124);
    }
}



static void Task27(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(127);
    }
}



static void Task28(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(111);
    }
}



static void Task29(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task30(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(333);
    }
}



static void Task31(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(22);
    }
}



static void Task32(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(163);
    }
}



static void Task33(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(330);
    }
}



static void Task34(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(35);
    }
}



static void Task35(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(135);
    }
}



static void Task36(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(78);
    }
}



static void Task37(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(375);
    }
}



static void Task38(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(385);
    }
}



static void Task39(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(220);
    }
}



static void Task40(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(400);
    }
}



static void Task41(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(412);
    }
}



static void Task42(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(142);
    }
}



static void Task43(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(134);
    }
}



static void Task44(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(144);
    }
}



static void Task45(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(456);
    }
}



static void Task46(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(42);
    }
}



static void Task47(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task48(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(820);
    }
}



static void Task49(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(1063);
    }
}



static void Task50(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task51(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(20);
    }
}



static void Task52(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task53(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(453);
    }
}



static void Task54(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(520);
    }
}



static void Task55(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(203);
    }
}



static void Task56(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(55);
    }
}



static void Task57(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(53);
    }
}



static void Task58(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(58);
    }
}



static void Task59(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(73);
    }
}



static void Task60(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(60);
    }
}



static void Task61(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(20);
    }
}



static void Task62(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task63(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(200);
    }
}



static void Task64(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(32);
    }
}



static void Task65(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(653);
    }
}



static void Task66(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(32);
    }
}



static void Task67(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(67);
    }
}



static void Task68(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(350);
    }
}



static void Task69(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(201);
    }
}



static void Task70(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task71(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(171);
    }
}



static void Task72(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(42);
    }
}



static void Task73(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(102);
    }
}



static void Task74(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(10);
    }
}



static void Task75(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(720);
    }
}



static void Task76(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(125);
    }
}



static void Task77(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(175);
    }
}



static void Task78(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(785);
    }
}



static void Task79(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task80(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(56);
    }
}



static void Task81(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(158);
    }
}



static void Task82(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task83(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(567);
    }
}



static void Task84(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(85);
    }
}



static void Task85(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(523);
    }
}



static void Task86(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(52);
    }
}



static void Task87(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(102);
    }
}



static void Task88(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(53);
    }
}



static void Task89(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(89);
    }
}



static void Task90(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task91(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(92);
    }
}



static void Task92(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(46);
    }
}



static void Task93(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(160);
    }
}



static void Task94(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(1643);
    }
}



static void Task95(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(10);
    }
}



static void Task96(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(27);
    }
}



static void Task97(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(56);
    }
}



static void Task98(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(52);
    }
}



static void Task99(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(99);
    }
}



static void Task100(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task101(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(82);
    }
}



static void Task102(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(98);
    }
}



static void Task103(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(68);
    }
}



static void Task104(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(230);
    }
}



static void Task105(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(148);
    }
}



static void Task106(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task107(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(65);
    }
}



static void Task108(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task109(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(163);
    }
}




static void Task110(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task111(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(64);
    }
}



static void Task112(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(152);
    }
}



static void Task113(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(45);
    }
}



static void Task114(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task115(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(58);
    }
}



static void Task116(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(231);
    }
}



static void Task117(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(45);
    }
}



static void Task118(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(236);
    }
}



static void Task119(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(119);
    }
}



static void Task120(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(201);
    }
}



static void Task121(void) {
    uword_t rand;

    while(1) {
         rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(121);
    }
}



static void Task122(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(125);
    }
}



static void Task123(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task124(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(25);
    }
}



static void Task125(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(231);
    }
}



static void Task126(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(124);
    }
}



static void Task127(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(127);
    }
}



static void Task128(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(111);
    }
}



static void Task129(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(123);
    }
}



static void Task130(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(333);
    }
}



static void Task131(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(22);
    }
}



static void Task132(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(163);
    }
}



static void Task133(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(330);
    }
}



static void Task134(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(35);
    }
}



static void Task135(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(135);
    }
}



static void Task136(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(78);
    }
}



static void Task137(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(375);
    }
}



static void Task138(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(385);
    }
}



static void Task139(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(220);
    }
}



static void Task140(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(400);
    }
}



static void Task141(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(412);
    }
}



static void Task142(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(142);
    }
}



static void Task143(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(134);
    }
}



static void Task144(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(144);
    }
}



static void Task145(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(456);
    }
}



static void Task146(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(42);
    }
}



static void Task147(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task148(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(820);
    }
}



static void Task149(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(1063);
    }
}



static void Task150(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task151(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(20);
    }
}



static void Task152(void) {
    uword_t rand;

    while(1) {

        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task153(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(453);
    }
}



static void Task154(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(520);
    }
}



static void Task155(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(203);
    }
}



static void Task156(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(55);
    }
}



static void Task157(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(53);
    }
}



static void Task158(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(58);
    }
}



static void Task159(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(73);
    }
}



static void Task160(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(60);
    }
}



static void Task161(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(20);
    }
}



static void Task162(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task163(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(200);
    }
}



static void Task164(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(32);
    }
}



static void Task165(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(653);
    }
}



static void Task166(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(32);
    }
}



static void Task167(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(67);
    }
}



static void Task168(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(350);
    }
}



static void Task169(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(201);
    }
}



static void Task170(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



static void Task171(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(171);
    }
}



static void Task172(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(42);
    }
}



static void Task173(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(102);
    }
}



static void Task174(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(10);
    }
}



static void Task175(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(720);
    }
}



static void Task176(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(125);
    }
}



static void Task177(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(175);
    }
}



static void Task178(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(785);
    }
}



static void Task179(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task180(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(56);
    }
}



static void Task181(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(158);
    }
}



static void Task182(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(36);
    }
}



static void Task183(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(567);
    }
}



static void Task184(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(85);
    }
}



static void Task185(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(523);
    }
}



static void Task186(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(52);
    }
}



static void Task187(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(102);
    }
}



static void Task188(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(53);
    }
}



static void Task189(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(89);
    }
}



static void Task190(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(23);
    }
}



static void Task191(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(92);
    }
}



static void Task192(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(46);
    }
}



static void Task193(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(160);
    }
}



static void Task194(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(1643);
    }
}



static void Task195(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(10);
    }
}



static void Task196(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(27);
    }
}



static void Task197(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(56);
    }
}



static void Task198(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(52);
    }
}



static void Task199(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(99);
    }
}



static void Task200(void) {
    uword_t rand;

    while(1) {
        rand = get_clock() & 0x3F;
        if(rand > MAX_PRIO - 1) {
            rand = MAX_PRIO - 1;
        }

        osChgPrio(rand);
        osWait(120);
    }
}



void Main(void) {
    osInitTask(Task0, 100, 0, 5, STACK_SIZE);
    osInitTask(Task1, 101, 1, 5, STACK_SIZE);
    osInitTask(Task2, 102, 2, 5, STACK_SIZE);
    osInitTask(Task3, 103, 3, 5, STACK_SIZE);
    osInitTask(Task4, 104, 4, 5, STACK_SIZE);
    osInitTask(Task5, 105, 5, 5, STACK_SIZE);
    osInitTask(Task6, 106, 6, 5, STACK_SIZE);
    osInitTask(Task7, 107, 7, 5, STACK_SIZE);
    osInitTask(Task8, 108, 8, 5, STACK_SIZE);
    osInitTask(Task9, 109, 9, 5, STACK_SIZE);
    osInitTask(Task10, 110, 10, 5, STACK_SIZE);
    osInitTask(Task11, 111, 11, 5, STACK_SIZE);
    osInitTask(Task12, 112, 12, 5, STACK_SIZE);
    osInitTask(Task13, 113, 13, 5, STACK_SIZE);
    osInitTask(Task14, 114, 14, 5, STACK_SIZE);
    osInitTask(Task15, 115, 15, 5, STACK_SIZE);
    osInitTask(Task16, 116, 16, 5, STACK_SIZE);
    osInitTask(Task17, 117, 17, 5, STACK_SIZE);
    osInitTask(Task18, 118, 18, 5, STACK_SIZE);
    osInitTask(Task19, 119, 19, 5, STACK_SIZE);
    osInitTask(Task20, 120, 20, 5, STACK_SIZE);
    osInitTask(Task21, 121, 21, 5, STACK_SIZE);
    osInitTask(Task22, 122, 22, 5, STACK_SIZE);
    osInitTask(Task23, 123, 23, 5, STACK_SIZE);
    osInitTask(Task24, 124, 24, 5, STACK_SIZE);
    osInitTask(Task25, 125, 25, 5, STACK_SIZE);
    osInitTask(Task26, 126, 26, 5, STACK_SIZE);
    osInitTask(Task27, 127, 27, 5, STACK_SIZE);
    osInitTask(Task28, 128, 28, 5, STACK_SIZE);
    osInitTask(Task29, 129, 29, 5, STACK_SIZE);
    osInitTask(Task30, 130, 30, 5, STACK_SIZE);
    osInitTask(Task31, 131, 31, 5, STACK_SIZE);
    osInitTask(Task32, 132, 32, 5, STACK_SIZE);
    osInitTask(Task33, 133, 33, 5, STACK_SIZE);
    osInitTask(Task34, 134, 34, 5, STACK_SIZE);
    osInitTask(Task35, 135, 35, 5, STACK_SIZE);
    osInitTask(Task36, 136, 36, 5, STACK_SIZE);
    osInitTask(Task37, 137, 37, 5, STACK_SIZE);
    osInitTask(Task38, 138, 38, 5, STACK_SIZE);
    osInitTask(Task39, 139, 39, 5, STACK_SIZE);
    osInitTask(Task40, 140, 40, 5, STACK_SIZE);
    osInitTask(Task41, 141, 41, 5, STACK_SIZE);
    osInitTask(Task42, 142, 42, 5, STACK_SIZE);
    osInitTask(Task43, 143, 43, 5, STACK_SIZE);
    osInitTask(Task44, 144, 44, 5, STACK_SIZE);
    osInitTask(Task45, 145, 45, 5, STACK_SIZE);
    osInitTask(Task46, 146, 46, 5, STACK_SIZE);
    osInitTask(Task47, 147, 47, 5, STACK_SIZE);
    osInitTask(Task48, 148, 48, 5, STACK_SIZE);
    osInitTask(Task49, 149, 49, 5, STACK_SIZE);
    osInitTask(Task50, 150, 50, 5, STACK_SIZE);
    osInitTask(Task51, 151, 51, 5, STACK_SIZE);
    osInitTask(Task52, 152, 52, 5, STACK_SIZE);
    osInitTask(Task53, 153, 53, 5, STACK_SIZE);
    osInitTask(Task54, 154, 54, 5, STACK_SIZE);
    osInitTask(Task55, 155, 55, 5, STACK_SIZE);
    osInitTask(Task56, 156, 56, 5, STACK_SIZE);
    osInitTask(Task57, 157, 57, 5, STACK_SIZE);
    osInitTask(Task58, 158, 58, 5, STACK_SIZE);
    osInitTask(Task59, 159, 59, 5, STACK_SIZE);
    osInitTask(Task60, 160, 60, 5, STACK_SIZE);
    osInitTask(Task61, 161, 61, 5, STACK_SIZE);
    osInitTask(Task62, 162, 62, 5, STACK_SIZE);
    osInitTask(Task63, 163, 63, 5, STACK_SIZE);
    osInitTask(Task64, 164, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task65, 165, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task66, 166, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task67, 167, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task68, 168, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task69, 169, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task70, 170, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task71, 171, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task72, 172, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task73, 173, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task74, 174, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task75, 175, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task76, 176, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task77, 177, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task78, 178, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task79, 179, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task80, 180, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task81, 181, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task82, 182, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task83, 183, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task84, 184, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task85, 185, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task86, 186, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task87, 187, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task88, 188, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task89, 189, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task90, 190, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task91, 191, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task92, 192, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task93, 193, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task94, 194, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task95, 195, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task96, 196, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task97, 197, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task98, 198, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task99, 199, SAME_PRIO, 5, STACK_SIZE);

    osInitTask(Task100, 1100, 0, 5, STACK_SIZE);
    osInitTask(Task101, 1101, 1, 5, STACK_SIZE);
    osInitTask(Task102, 1102, 2, 5, STACK_SIZE);
    osInitTask(Task103, 1103, 3, 5, STACK_SIZE);
    osInitTask(Task104, 1104, 4, 5, STACK_SIZE);
    osInitTask(Task105, 1105, 5, 5, STACK_SIZE);
    osInitTask(Task106, 1106, 6, 5, STACK_SIZE);
    osInitTask(Task107, 1107, 7, 5, STACK_SIZE);
    osInitTask(Task108, 1108, 8, 5, STACK_SIZE);
    osInitTask(Task109, 1109, 9, 5, STACK_SIZE);
    osInitTask(Task110, 1110, 10, 5, STACK_SIZE);
    osInitTask(Task111, 1111, 11, 5, STACK_SIZE);
    osInitTask(Task112, 1112, 12, 5, STACK_SIZE);
    osInitTask(Task113, 1113, 13, 5, STACK_SIZE);
    osInitTask(Task114, 1114, 14, 5, STACK_SIZE);
    osInitTask(Task115, 1115, 15, 5, STACK_SIZE);
    osInitTask(Task116, 1116, 16, 5, STACK_SIZE);
    osInitTask(Task117, 1117, 17, 5, STACK_SIZE);
    osInitTask(Task118, 1118, 18, 5, STACK_SIZE);
    osInitTask(Task119, 1119, 19, 5, STACK_SIZE);
    osInitTask(Task120, 1120, 20, 5, STACK_SIZE);
    osInitTask(Task121, 1121, 21, 5, STACK_SIZE);
    osInitTask(Task122, 1122, 22, 5, STACK_SIZE);
    osInitTask(Task123, 1123, 23, 5, STACK_SIZE);
    osInitTask(Task124, 1124, 24, 5, STACK_SIZE);
    osInitTask(Task125, 1125, 25, 5, STACK_SIZE);
    osInitTask(Task126, 1126, 26, 5, STACK_SIZE);
    osInitTask(Task127, 1127, 27, 5, STACK_SIZE);
    osInitTask(Task128, 1128, 28, 5, STACK_SIZE);
    osInitTask(Task129, 1129, 29, 5, STACK_SIZE);
    osInitTask(Task130, 1130, 30, 5, STACK_SIZE);
    osInitTask(Task131, 1131, 31, 5, STACK_SIZE);
    osInitTask(Task132, 1132, 32, 5, STACK_SIZE);
    osInitTask(Task133, 1133, 33, 5, STACK_SIZE);
    osInitTask(Task134, 1134, 34, 5, STACK_SIZE);
    osInitTask(Task135, 1135, 35, 5, STACK_SIZE);
    osInitTask(Task136, 1136, 36, 5, STACK_SIZE);
    osInitTask(Task137, 1137, 37, 5, STACK_SIZE);
    osInitTask(Task138, 1138, 38, 5, STACK_SIZE);
    osInitTask(Task139, 1139, 39, 5, STACK_SIZE);
    osInitTask(Task140, 1140, 40, 5, STACK_SIZE);
    osInitTask(Task141, 1141, 41, 5, STACK_SIZE);
    osInitTask(Task142, 1142, 42, 5, STACK_SIZE);
    osInitTask(Task143, 1143, 43, 5, STACK_SIZE);
    osInitTask(Task144, 1144, 44, 5, STACK_SIZE);
    osInitTask(Task145, 1145, 45, 5, STACK_SIZE);
    osInitTask(Task146, 1146, 46, 5, STACK_SIZE);
    osInitTask(Task147, 1147, 47, 5, STACK_SIZE);
    osInitTask(Task148, 1148, 48, 5, STACK_SIZE);
    osInitTask(Task149, 1149, 49, 5, STACK_SIZE);
    osInitTask(Task150, 1150, 50, 5, STACK_SIZE);
    osInitTask(Task151, 1151, 51, 5, STACK_SIZE);
    osInitTask(Task152, 1152, 52, 5, STACK_SIZE);
    osInitTask(Task153, 1153, 53, 5, STACK_SIZE);
    osInitTask(Task154, 1154, 54, 5, STACK_SIZE);
    osInitTask(Task155, 1155, 55, 5, STACK_SIZE);
    osInitTask(Task156, 1156, 56, 5, STACK_SIZE);
    osInitTask(Task157, 1157, 57, 5, STACK_SIZE);
    osInitTask(Task158, 1158, 58, 5, STACK_SIZE);
    osInitTask(Task159, 1159, 59, 5, STACK_SIZE);
    osInitTask(Task160, 1160, 60, 5, STACK_SIZE);
    osInitTask(Task161, 1161, 61, 5, STACK_SIZE);
    osInitTask(Task162, 1162, 62, 5, STACK_SIZE);
    osInitTask(Task163, 1163, 63, 5, STACK_SIZE);
    osInitTask(Task164, 1164, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task165, 1165, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task166, 1166, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task167, 1167, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task168, 1168, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task169, 1169, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task170, 1170, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task171, 1171, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task172, 1172, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task173, 1173, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task174, 1174, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task175, 1175, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task176, 1176, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task177, 1177, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task178, 1178, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task179, 1179, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task180, 1180, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task181, 1181, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task182, 1182, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task183, 1183, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task184, 1184, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task185, 1185, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task186, 1186, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task187, 1187, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task188, 1188, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task189, 1189, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task190, 1190, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task191, 1191, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task192, 1192, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task193, 1193, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task194, 1194, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task195, 1195, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task196, 1196, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task197, 1197, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task198, 1198, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task199, 1199, SAME_PRIO, 5, STACK_SIZE);
    osInitTask(Task200, 1200, SAME_PRIO, 5, STACK_SIZE);
}
